#include "inelement.h"
#include "appsettings.h"
#include "exceptions.h"

#include <QDebug>

InElement::InElement():ConfiguredElement()
{
    signalsContainer.setParent(this);
}

void InElement::generateSignal(uint time, uint tact)
{
    signed char signal = signalsContainer.at(tact);
    pins.at(0)->send(signal);
}

SignalContainer& InElement::getSignalCollection()
{
    return signalsContainer;
}

bool InElement::getEditable()
{
    //Разрешено редактирование
    return true;
}

void InElement::initData(const QDomNode &additionals)
{

}

void InElement::saveData(QDomNode &additionals)
{

}
